﻿i, a[i] = i+1, 20

g1 = 10

local x, y, z = 3, 2;

local function testfn(p1, p2)
	return g1 + p1 + p2 + x;
end

local function testfn2(_ENV, p1, p2)
	print("testing " .. p1 .. " + " .. p2);
	return p1 + p2;
end

local myprint = function(...) print "myprint"; print(...); end;
local x = testfn(1, 2);
local y = testfn2({ print = myprint }, 3, 7);

print(x);
myprint(y);

return x;